projects
/
xen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1da2cdf
)
Revert 15975:96f46954c7f1.
author
Keir Fraser
<keir@xensource.com>
Mon, 1 Oct 2007 05:35:40 +0000
(06:35 +0100)
committer
Keir Fraser
<keir@xensource.com>
Mon, 1 Oct 2007 05:35:40 +0000
(06:35 +0100)
xen/include/xsm/acm/acm_hooks.h
patch
|
blob
|
history
diff --git
a/xen/include/xsm/acm/acm_hooks.h
b/xen/include/xsm/acm/acm_hooks.h
index bb6ed02c31e3700914ef95993a152dadc2384fa2..54bd15e2a00162aef45a085179c4eb8c559bb837 100644
(file)
--- a/
xen/include/xsm/acm/acm_hooks.h
+++ b/
xen/include/xsm/acm/acm_hooks.h
@@
-284,12
+284,17
@@
static inline int acm_domain_create(struct domain *d, ssidref_t ssidref)
} else if ((acm_secondary_ops->domain_create != NULL) &&
acm_secondary_ops->domain_create(subject_ssid, ssidref,
domid)) {
+ /* roll-back primary */
+ if (acm_primary_ops->domain_destroy != NULL)
+ acm_primary_ops->domain_destroy(d->ssid, d);
rc = ACM_ACCESS_DENIED;
}
if ( rc == ACM_OK )
{
acm_domain_ssid_onto_list(d->ssid);
+ } else {
+ acm_free_domain_ssid(d->ssid);
}
error_out: